<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>订单页面</title>

    <link rel="stylesheet" href="__STATIC__/before/style/home.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/before/style/order.css" type="text/css">
    {include file="public/header" /}

</head>
<body>
<!-- 顶部导航 start -->
{include file="public/topnav" /}
<!-- 顶部导航 end -->

<div style="clear:both;"></div>

<!-- 头部 start -->
<div class="header w1210 bc mt15">
    <!-- 头部上半部分 start 包括 logo、搜索、用户中心和购物车结算 -->
    {include file="public/top-header" /}
    <!-- 头部上半部分 end -->

    <!-- 导航条部分 start -->
    {include file="public/nav-different" /}
    <!-- 导航条部分 end -->
</div>
<!-- 头部 end-->

<div style="clear:both;"></div>

<!-- 页面主体 start -->
<div class="main w1210 bc mt10">


    <!-- 左侧导航菜单 start -->
    {include file="public/left_menu" /}
    <!-- 左侧导航菜单 end -->

    <!-- 右侧内容区域 start -->
    <div class="content fl ml10">
        <div class="order_hd">
            <h3>我的订单</h3>
            <dl>
                <dt>便利提醒：</dt>
                <dd>待付款（{$noPay}）</dd>
                <dd>已取消（{$cancelNum}）</dd>
                <dd>已付款（{$payNum}）</dd>
            </dl>
        </div>

        <div class="order_bd mt10">
            <table class="orders">
                <thead>
                <tr>
                    <th width="15%">订单号</th>
                    <th width="18%">订单商品</th>
                    <th width="10%">收货人</th>
                    <th width="18%">订单金额</th>
                    <th width="19%">下单时间</th>
                    <th width="10%">订单状态</th>
                    <th width="10%">操作</th>
                </tr>
                </thead>
                <tbody>

<!--$order->order_num-->
                {volist id='order' name='order'}
                <tr>
                    <td><a href="">{$order->order_num}</a></td>
                    <td><a href=""><img src="__STATIC__/before/images/{$order->img}" alt=""/></a></td>
                    <td>{$order->recipient}</td>
                    <td>￥{$order->price} {$order->pay_type?'在线支付':'货到付款'}</td>
                    <td>{$order->time}}</td>
                    <td>{if $order->status eq 0}已付款
                        {elseif $order->status eq 1} 未付款
                        {else/} 取消订单
                        {/if}
                        </td>
                    <td>
                        <!--<a href="">查看</a> | -->
                        <a href="#" onclick="warning('确定要删除吗？','{:url('User/orderDel',array('id'=>$order->shop_cart_id))}')">删除</a></td>
                </tr>

                {/volist}

                <!--<tr>-->
                    <!--<td><a href="">852571653</a></td>-->
                    <!--<td><a href=""><img src="__STATIC__/before/images/order2.jpg" alt=""/></a></td>-->
                    <!--<td>小明</td>-->
                    <!--<td>￥35.00 在线支付</td>-->
                    <!--<td>2013-11-13 19:28:14</td>-->
                    <!--<td>已完成</td>-->
                    <!--<td><a href="">删除</a></td>-->
                <!--</tr>-->



                </tbody>
            </table>
        </div>
    </div>
    <!-- 右侧内容区域 end -->
</div>
<!-- 页面主体 end-->

<div style="clear:both;"></div>

<!-- 底部导航 start bottomnav-->
{include file="public/bottomnav" /}
<!-- 底部导航 end -->

<div style="clear:both;"></div>
<!-- 底部版权 start -->
<div class="footer w1210 bc mt10">
    {include file="public/footer" /}
</div>
<!-- 底部版权 end -->
</body>
<script type="text/javascript" src="__STATIC__/before/js/home.js"></script>

<script>
    function warning(info, url){
        if(window.confirm(info)){
            window.location.href = url;
        }
    }
</script>
</html>